﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true" CodeBehind="TrainingSearchResult.aspx.cs" Inherits="badminton.Pages.TrainingSearchResult" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>
        <table border="0" cellspacing="0" cellpadding="2" width="100%">
        	<tr>
        		<td width="250" valign="top" >
                        <table border="0" cellspacing="0" cellpadding="2" width="100%" 
                            bgcolor="#006699" style="color: #FFFFFF">
                            <tr>
                                <td>
                                培训类别
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTrainingCategory" runat="server" 
                                        Width="120px" >
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                所在城区
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTraingCityArea" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="OnTraingCityAreaChanged" Width="120px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                所在球馆
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListTraingHall" runat="server" Width="120px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" height="5">
                                <hr />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                模糊查询
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxTraingText" runat="server" Width="120px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan=2 align="right">
                                    <asp:Button ID="ButtonSearchTraining" runat="server" Text="搜索培训" 
                                        oncommand="OnSearchTraining"    />
                                </td>
                            </tr>
                        </table>

                </td>
                <td valign="top">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <table class="thinframetable" border="0" cellspacing="1" cellpadding="0" width="100%">
                            <tr class="thinframetable"><td colspan=6 class="title">培训查询结果</td></tr>
                            <tr class="thinframetable">
                            <th>培训</th> <th>所在城区</th> <th align="center">所在球馆</th> <th>培训时间</th> <th>开班人数</th>  <th>报名人数</th> 
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="thinframetable">
                            <td>
                                <a href='./TrainingDetail.aspx?trainingid=<%# Eval("id") %>'><%# Eval("name") %></a>
                            </td>
                            <td align="center">
                                <%# GetCityAreaName(Eval("id")) %>
                            </td>
                            <td align="center">
                                <a href='./HallDetail.aspx?hallid=<%# Eval("hallId") %>'><%# GetHallName(Eval("id")) %></a>
                                
                            </td>
                            <td align="center">
                                <%# GetStartTime(Eval("id")) %>
                            </td>
                            <td align="center">
                                <%# Eval("requiredTraineeNum") %>
                            </td>
                            <td align="center">
                                <%# GetTraineeNumber(Eval("id")) %>
                            </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="thinframetable_altern">
                            <td>
                                <a href='./TrainingDetail.aspx?trainingid=<%# Eval("id") %>'><%# Eval("name") %></a>
                            </td>
                            <td align="center">
                                <%# GetCityAreaName(Eval("id")) %>
                            </td>
                            <td align="center">
                                <a href='./HallDetail.aspx?hallid=<%# Eval("hallId") %>'><%# GetHallName(Eval("id")) %></a>
                                
                            </td>
                            <td align="center">
                                <%# GetStartTime(Eval("id")) %>
                            </td>
                            <td align="center">
                                <%# Eval("requiredTraineeNum") %>
                            </td>
                            <td align="center">
                                <%# GetTraineeNumber(Eval("id")) %>
                            </td>
                             </tr>
                        </AlternatingItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
        	</tr>
        </table>
        </td>
    </tr>
</table>


</asp:Content>
